<template>
	<view>
		<u-row customStyle="margin-bottom: 10px" >
			  <u-col span="1"></u-col>
			  <u-col span="10">
				  <u--textarea v-model="valueMsg" placeholder="请输入msg" ></u--textarea>
			  </u-col>
			  <u-col span="1"></u-col>
		</u-row>
		<!-- 登录 -->
		<u-row customStyle="margin-bottom: 10px" >
			  <u-col span="1"></u-col>
			  <u-col span="10">
				  <u-button type="primary" text="置入msg" @click="submit"></u-button>
			  </u-col>
			  <u-col span="1"></u-col>
		</u-row>
		<u-row customStyle="margin-bottom: 10px" >
			  <u-col span="1"></u-col>
			  <u-col span="10">
				  <u-button type="primary" text="读取msg" @click="readMsg"></u-button>
			  </u-col>
			  <u-col span="1"></u-col>
		</u-row>
		<u-row customStyle="margin-bottom: 10px" >
			  <u-col span="1"></u-col>
			  <u-col span="10">
				  <u-button type="primary" text="读取pwd" @click="readPwd"></u-button>
			  </u-col>
			  <u-col span="1"></u-col>
		</u-row>
		<u-row customStyle="margin-bottom: 10px" >
			  <u-col span="1"></u-col>
			  <u-col span="10">
				  <u-button type="primary" text="读取deviceModel" @click="readdeviceModel"></u-button>
			  </u-col>
			  <u-col span="1"></u-col>
		</u-row>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				valueMsg:""
			};
		},
		methods:{
			submit(){
				
			},
			readMsg(){
				this.valueMsg = uni.getStorageSync("msg")
			},
			readPwd(){
				this.valueMsg = uni.getStorageSync("pwd")
			},
			readdeviceModel(){
				this.valueMsg = uni.getSystemInfoSync().deviceModel.replace(/\s*/g,"")
			}
		}
	}
</script>

<style lang="scss">

</style>
